]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/system: Fix missing battery percentage in the top bar
authorDaPigGuy <mcpepig123@gmail.com>
Wed, 22 Feb 2023 17:57:18 +0000 (09:57 -0800)
committerDaPigGuy <mcpepig123@gmail.com>
Wed, 22 Feb 2023 21:21:15 +0000 (13:21 -0800)
The percentage label text was bound to the 'label' property, which was
renamed to 'title' in GNOME 44 with the quick settings changes. This
was missed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2657>

js/ui/status/system.js

index 25521125fc73cb86b18a3bb8de97f072a063d88c..d57e2786a69f93f17d2eeaea017713bf7feca9bf 100644 (file)
@@ -316,7 +316,7 @@ class Indicator extends SystemIndicator {
 
         const {powerToggle} = this._systemItem;
 
-        powerToggle.bind_property('label',
+        powerToggle.bind_property('title',
             this._percentageLabel, 'text',
             GObject.BindingFlags.SYNC_CREATE);